package com.caeit.model.bigscreen;

import com.caeit.base.BaseModel;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 态势研判配置表
 *
 * @author chenyr
 */
@Entity
@SQLDelete(sql = "update bigscreen_config set delete_status = 1 where id = ?")
@Table(name = "bigscreen_config")
@DynamicUpdate
@DynamicInsert
public class BigscreenConfig extends BaseModel implements Serializable {

    private Integer category ;
    /** 大屏名称 */
    private String name ;

    /** 缩略图地址 */
    private String imageUrl ;
    /** 主要json */
    @Column(columnDefinition = "text")
    private String mainJson ;
    /** 是否启用（0否 1是） */
    private Integer status ;
    /** 创建人 */
    private String createdBy ;
    /** 更新人 */
    private String lastModifiedBy ;
    /** 创建部门 */
    private String createDept ;
    /** 创建区划 */
    private String createArea ;

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMainJson() {
        return mainJson;
    }

    public void setMainJson(String mainJson) {
        this.mainJson = mainJson;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public String getCreateDept() {
        return createDept;
    }

    public void setCreateDept(String createDept) {
        this.createDept = createDept;
    }

    public String getCreateArea() {
        return createArea;
    }

    public void setCreateArea(String createArea) {
        this.createArea = createArea;
    }
}
